package com.example.birdfriends.service.impl;

import com.example.birdfriends.dao.RecommendDao;
import com.example.birdfriends.pojo.recommend.Recommend;
import com.example.birdfriends.service.RecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RecommendServiceImpl implements RecommendService {
    @Autowired
    private RecommendDao recommendDao;

    @Override
    public int insertRecommend(Recommend recommend) {
        return recommendDao.insertRecommend(recommend);
    }

    @Override
    public Recommend findRecommendByCurLoginUid(Long curLoginUid) {
        return recommendDao.findRecommendByCurLoginUid(curLoginUid);
    }

    @Override
    public int updateRecommendPidList(Recommend recommend) {
        return recommendDao.updateRecommendPidListByUid(recommend);
    }
}
